<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
  
    <link rel="stylesheet" type="text/css" href="/Public/admin/Css/bootstrap.min.css" />
     <link rel="stylesheet" type="text/css" href="/Public/admin/Css/ui.css" />
      <link rel="stylesheet" type="text/css" href="/Public/admin/Css/Admin-default.css" />
   
</head>
<body>
<div class="page-content-wrap">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="panel panel-default">
                                <div class="panel-body">
<form action="<?php echo U('Reply/delete');?>" method="post">
    <div class="table-tools">
        <button type="submit" class="btn btn-primary" title="删除勾选的问卷"><i class="glyphicon glyphicon-remove"></i> 删 除 </button>
        <p>成绩表</p>
    </div>

    <table id="reply-table" class="table table-striped table-hover table-condensed datatable">
        <thead>
        <tr>
            <th><input id="all-reply" type="checkbox"/>序号</th>
            <th>类型</th>
            <th>问卷</th>
            <th>头像</th>
            <th>昵称</th>
            <th>得分</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <?php if(is_array($replyRecords)): $i = 0; $__LIST__ = $replyRecords;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$record): $mod = ($i % 2 );++$i;?><tr>
                <td><input name='id[]' type="checkbox" value="<?php echo ($record["id"]); ?>" /> <?php echo ($i); ?></td>
                <td>
                    <?php switch($record["q_type"]): case "survey": ?><span class="label label-danger"><i class="fa fa-tag"></i>调研卷</span><?php break;?>
                        <?php case "exam": ?><span class="label label-warning"><i class="fa fa-tag"></i>考试卷</span><?php break; endswitch;?>
                </td>
                <td><?php echo ($record["q_name"]); ?></td>
                <td><img src="<?php echo ($record["headimgurl"]); ?>"/></td>
                <td><?php echo ($record["nickname"]); ?></td>
                <td><?php echo ($record["total_score"]); ?></td>
                <td>
                    <a href="<?php echo U('Reply/delete', array('id' => $record['id']));?>" class="btn btn-danger btn-rounded btn-condensed btn-sm" title="删除问卷"><span class="fa fa-times"></span></a>
                </td>
            </tr><?php endforeach; endif; else: echo "" ;endif; ?>
        </tbody>
    </table>
</form>
</div>
</div>
</div>
</div>
</div>
</body>
</html>